import Vue from 'vue'
import ECharts from 'vue-echarts'
import { use } from 'echarts/core'
// 手动引入 ECharts 各模块来减小打包体积

import {
  CanvasRenderer
} from 'echarts/renderers'
import {
  PieChart,GaugeChart,BarChart
} from 'echarts/charts'
import {
  MarkLineComponent,
  GridComponent,
  TooltipComponent,
  LegendComponent,
  ToolboxComponent,
  TitleComponent 
} from 'echarts/components'


use([
  BarChart,
  CanvasRenderer,
  PieChart,
  GaugeChart,
  GridComponent,
  TooltipComponent,
  LegendComponent,
  ToolboxComponent,
  TitleComponent,
  MarkLineComponent
]);

Vue.component('v-chart', ECharts)
